import request from '../Utils/request'

export function GetSupplier(data){
    return  request.get(`/Suppliers`,{data:data});
}

//修改状态
export function PutStatus(data){
    return request.put(`/suppliers/status`,data)
}
//增加供应商
export function addSupplier(data){
    return request.post(`/suppliers`,data)
}
//更新供应商
export function PutSuppliers(id,data){
    return request.put(`/suppliers/${id}`,data)
}

//伪删除供应商
export function DeleteSuppliers(id){
    return request.delete(`/suppliers/${id}`)
}